package week13.queue.memory;

import week13.queue.api.Producer;
import week13.queue.api.Storage;

public class MemoryProducer implements Producer {
    private Storage storage;

    public MemoryProducer(Storage storage) {
        this.storage = storage;
    }

    @Override
    public void send(Object msg) {
        storage.put(msg);
    }
}
